﻿using System.Collections.Generic;
// 路径节点类
public class Node
{
    public List<Edge> edgeList = new List<Edge>();
    public Node path = null;    // 当被构建时返回根路径节点或者航路点路径中的第一个节点
    public OctreeNode octreeNode;

    public float f, g, h;
    public Node cameFrom;
    public Node(OctreeNode n)
    {
        octreeNode = n;
        path = null;
    }

    public OctreeNode GetNode()
    {
        return octreeNode;
    }
}
